package platform.user.auth.token.store;

import org.springframework.data.mongodb.repository.MongoRepository;
import platform.user.auth.token.SessionToken;

import java.util.UUID;

/**
 * Token 数据接口
 *
 * @author roamer
 * @version V1.0
 * @date 2019-03-11 17:12
 */
public interface TokenRepository extends MongoRepository<SessionToken, String> {

    /**
     * 查询
     *
     * @param uuid {@code UUID }
     *
     * @return {@code SessionToken}
     */
    SessionToken queryByValue(UUID uuid);
}
